<?php
//用于修改订单信息
use yii\helpers\Html;
use yii\widgets\ActiveForm;

?>

<div class="tpl-content-wrapper">
    <div class="container-fluid am-cf">
        <div class="row">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                <div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 修改用户订单信息
                    <small>AI Future</small>
                </div>
                <p class="page-header-description">用户订单信息修改</p>
            </div>
        </div>
    </div>

    <div class="row-content am-cf">

        <div class="row">

            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <div class="widget am-cf">
                    <div class="widget-head am-cf">
                        <div class="widget-title am-fl">修改用户订单信息</div>
                        <div class="widget-function am-fr">
                            <a href="javascript:;" class="am-icon-cog"></a>
                        </div>
                    </div>
                    <div class="widget-body am-fr">
                        <?php $form = ActiveForm::begin([
                            'id' => 'login-form',
                            'method' => 'post',
                            'options' => ['class' => "am-form tpl-form-border-form tpl-form-border-br"],
                            'enableClientValidation' => true,
                            'fieldConfig' => [
                                'template' => "<div class=\"col-lg-5\">{input}</div>\n<div class=\"col-lg-3 am-btn-danger\">{error}</div>",
                            ]
                        ]) ?>
                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">用户ID: <span
                                        class="tpl-form-line-small-title">UID</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($finance, 'uid')->textInput(['class' => 'col-sm-6','readonly'=>'true',])->label(false); ?>                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">订单号: <span
                                        class="tpl-form-line-small-title">order_number</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($finance, 'order_number')->textInput(['placeholder' => '请输入转账后的订单号','class' => 'col-sm-6'])->label(false); ?>
                            </div>
                        </div>
                        
                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">金额: <span
                                        class="tpl-form-line-small-title">Price</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($finance, 'price')->textInput(['class' => 'col-sm-6','placeholder' => '输入已转账金额'])->label(false) ?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="user-intro" class="am-u-sm-3 am-form-label">备注信息: </label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($finance, 'admin_remarks')->textarea(['class' => 'col-sm-6', 'placeholder' => "填写备注信息",'rows' => "10"])->label(false) ?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <?php echo Html::submitButton('确认', ['class' => 'am-btn am-btn-primary', 'name' => 'submit-button']) ?>
                            </div>
                        </div>
                        <?php ActiveForm::end(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
